<template>
	<div>
		<HomeHeader></HomeHeader>
		<HomeLeft :cur="9"></HomeLeft>
		<div id="main">
			<div id="web_con">
				<div class="web_wp">
					<div class="web_location">
						<div class="here_area">
							<strong>当前位置：</strong>服务申请
						</div>
						<div class="here_btn">

						</div>
					</div>
					<!-- <div class="tabTitle">
						<ul class="clearfix">
							<li class="cur"><a href="javascript:;">地域分类</a></li>
							<li class=""><a href="javascript:;">地域分类</a></li>
						</ul>
						<div class="c"></div>
					</div> -->
					<div class="filter clearfix">
						<div class="aa">
							<div class="item">
								<span>分类名称：</span>
								<input type="text" placeholder="请输入" class="fill_text">
							</div>
							<div class="item">
								<button class="but_search">搜 索</button>
							</div>
						</div>
						<div class="bb">
							<!-- <a href="javascript:;" class="web_btn" @click="DeleteList()">
								<em class="iconfont icon-shdcsub-add-copy"></em>冻结
							</a> -->
							<a href="javascript:;" class="web_btn btn_refresh"><em
									class="iconfont icon-shdcshuaxin"></em>刷新</a>
						</div>
					</div>

					<div class="web_table">
						<table>
							<tr>
								<!-- <th class="tac" style="width: 60px;">选择</th> -->
								<th class="tac">申请人</th>
								<!-- <th class="tac">电话</th> -->
								<th class="tac">手机</th>
								<th class="tac">地址</th>
								<th class="tac">邮箱</th>
								<th class="tac">申请时间</th>
								<th class="tac">状态</th>
								<th class="tac">操作</th>
							</tr>
							<tr v-for="(item,i) in listinfo.data" :key="i">
								<td class="tac">{{item.name}}</td>
								<td class="tac">{{item.phone}}</td>
								<!-- <td class="tac">152369785544</td> -->
								<td class="tac">{{item.area}}{{item.address}}</td>
								<td class="tac">{{item.email}}</td>
								<td class="tac"> {{common.FormatDate(item.created_at,1)}}</td>
								<td class="tac">
									<span style="color:#f2911e;" v-if="item.status==10">处理中</span>
									<span style="color:#27d111;" v-if="item.status==20">已处理</span>
								</td>
								<td class="tac">
									<navigator :url="'/pages/serve/edit?id=' + item.id" hover-class="none" class="editBtn" title="编辑">
									</navigator>
								</td>
							</tr>
						</table>
					</div>
					<div class="web_page">
						<el-pagination background @current-change="ChengPage" :current-page="page" :page-size="10"
							layout="total,prev, pager,next" :total="listinfo.total">
						</el-pagination>
					</div>
				</div>
			</div>
		</div>
	</div>
</template>

<script>
	import HomeHeader from '../components/Header.vue'
	import HomeLeft from '../components/Left.vue'
	export default {
		components: {
			HomeHeader,
			HomeLeft,

		},
		data() {
			return {
				page:1,
				listinfo: [],
			}
		},
		onShow() {
			this.GetList();
		},
		methods: {
			GetList: function() {
				let that = this;
				uni.showLoading({
					title: '加载中...',
					mask: true
				});
				let _data = {
					name: that.keywords,
					page: that.page
				};
				that.common.http('GET', 'service/index', _data, function(res) {
					uni.hideLoading();
					console.log(res)
					that.listinfo = res.data
				});
			},
			LookTest: function(id) {
				uni.navigateTo({
					url: '/pages/member/info?id=' + id
				})
			},
		}
	}
</script>

<style>


</style>